﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPWinFormWork.Sales.DTO.Output
{
    public class DiscountAdd
    {
        public Discount discount { get; set; }
        public List<Stepwise> stepwises { get; set; }
        public List<Repeat> repeats { get; set; }
    }

    public class Discount
    {
        /// <summary>
        /// 方案名称
        /// </summary>
        public string Discount_Name { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
        public int Product_Id { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool Discount_State { get; set; }=true;
        /// <summary>
        /// 备注
        /// </summary>
        public string Discount_Descr { get; set; }
    }

    /// <summary>
    /// 阶梯
    /// </summary>
    public class Stepwise
    {
        /// <summary>
        /// 达成条件
        /// </summary>
        public int Stepwise_Condition { get; set; }
        /// <summary>
        /// 折扣
        /// </summary>
        public decimal Discount { get; set; }
    }

    /// <summary>
    /// 复购
    /// </summary>
    public class Repeat
    {
        /// <summary>
        /// 达成条件
        /// </summary>
        public int Repeat_Condition { get; set; }
        /// <summary>
        /// 折扣
        /// </summary>
        public decimal Discount { get; set; }
    }
}
